package com.example.user.domain.contest;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("tb_user_contest")
public class UserContest extends BaseEntity {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id; // 主键ID
    private Long contestId; // 比赛ID
    private Long userId; // 用户ID
    private Integer score; // 用户得分
    private Integer contestRank; // 用户排名
}
